<%= form_for(@user) do |f| %>
<% if @user.errors.any? %>
<div id="error_explanation">
<h2> <%= t('errors.template.header', :count => @user.errors.count, :model => t('activerecord.models.user'))%></h2>
<p><%= t('errors.template.body') %></p> 
    <ul>
        <% @user.errors.full_messages.each do |msg| %>
        <li>
            <%=   msg %>
        </li>
        <% end %>
    </ul>
</div>
<% end %>
<div class="field">
    <%= f.label :name %>
    <br />
    <%= f.text_field :name %>
</div>
<div class="field">
    <%= f.label :password %>
    <br />
    <%= f.text_field :password %>
</div>
<div class="field">
    <%= f.label :salt %>
    <br />
    <%= f.text_field :salt %>
</div>
<div class="actions">
    <%= f.submit %>
</div>
<% end %> 